package mall.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

public class Order implements Serializable{
	private static final long serialVersionUID = -4691838349143473887L;
	private long oid;
	private long uid;
	private BigDecimal totalAmount;
	private Timestamp createTime;
	private OrderState state;

	public Order() {
	}

	public Order(long oid, long uid, BigDecimal totalAmount, Timestamp createTime, OrderState state) {
		super();
		this.oid = oid;
		this.uid = uid;
		this.totalAmount = totalAmount;
		this.createTime = createTime;
		this.state = state;
	}

	public OrderState getState() {
		return state;
	}
	
	public void setState(OrderState state) {
		this.state = state;
	}

	public long getOid() {
		return oid;
	}

	public void setOid(long oid) {
		this.oid = oid;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "Order [oid=" + oid + ", uid=" + uid + ", totalAmount=" + totalAmount + ", createTime=" + createTime
				+ ", state=" + state + "]";
	}

}
